package java_DesignPattern.CreatorPattern.BuilderPattern.Method1;

/**
 * 建造者模式---创建复杂的对象
 */
public class Test {

    public static void main(String[] args) {

        // 美国美女建造者
        Builder americaBuilder = new AmericaBG();
        // 中国美女建造者
        Builder chinaBuilder = new ChinaBG();

        // 指挥者
        Director director = new Director(americaBuilder);
        // 指挥建造美国美女
        BGirl americaBGirl = director.construct("170cm", "60kg");
        System.out.println(americaBGirl.getHeight() + " " + americaBGirl.getWeight());
    }
}
